<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2016. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Java Editor Typing Preferences</title>
<link rel="stylesheet" href="../../../../book.css" charset="ISO-8859-1" type="text/css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
</head>
<body>
<h1>Java Editor Typing Preferences</h1>
<p>Indicate your preferences for the smart insert settings on the <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.SmartTypingPreferencePage)")'> <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Typing preference page"><b> Java &gt; Editor &gt; Typing </b></a> preference page.
Those preferences are only considered if <b>Smart Insert Mode</b> appears in the status line. This can be toggled in the <b>Edit</b> menu.</p>
<table border="1" cellspacing="0" cellpadding="5" summary="Typing settings">
	<thead>
		<tr>
			<th>
			<p>Option</p>
			</th>
			<th>
			<p>Description</p>
			</th>
			<th>
			<p>Default</p>
			</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td valign="top">
			<p>Automatically close</p>
			</td>
			<td valign="top">
			<p>Select for which characters a closing character should be inserted when typing the opening character.</p>
			</td>
			<td valign="top">
			<p>All on</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Automatically insert at correct position</p>
			</td>
			<td valign="top">
			<p>Select which characters should be automatically inserted where they are required.</p>
			</td>
			<td valign="top">
			<p>Semicolons - Off</p>
			<p>Braces - On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Enter key adjusts the indentation on the new line</p>
			</td>
			<td valign="top">
			<p>If enabled, smart indentation will be used to indent the new line after pressing the 'Enter' key.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Tab key adjusts the indentation of the current line</p>
			</td>
			<td valign="top">
			<p>If enabled then the 'Tab' key can be used to indent the current line.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Adjust indentation</p>
			</td>
			<td valign="top">
			<p>When pasting Java code from the clipboard adjust its indentation to the current
			indentation level.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Update imports</p>
			</td>
			<td valign="top">
			<p>When pasting Java code from the clipboard add the required import statements to the import section.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Wrap automatically</p>
			</td>
			<td valign="top">
			<p>If enabled, string literals are wrapped when they exceed the max line length.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Escape text when pasting into a string literal</p>
			</td>
			<td valign="top">
			<p>If enabled, special characters in pasted strings are escaped when they are pasted into an existing string literal.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
	</tbody>
</table>
<h3 class="related">Related references</h3>
<a href="../ref-preferences-editor.htm">Java editor preference page</a>
</body>
</html>
